Document segmentation method

ABSTRACT

The invention provides a document segmentation method of detecting segmentation points where a topic of an input document is discontinuous before and after the point to divide the document into plural blocks.  
     In order to resolve the above-mentioned problem, a segmentation methods according to the invention comprises: detecting terms that occur in an input document; segmenting said input document into document segments, each segment being an appropriate sized chunk; generating document segment vectors with as its elements values related to frequencies of said terms occurring in said document segments; calculating eigenvalues and eigenvectors of a square sum matrix of said document segment vectors; selecting the basis vectors consisting a subspace from said eigenvectors to calculate the topic continuity of the document segments; calculating vectors with as their elements the values corresponding to the projection values of the each document segment vector onto said basis vector; and determining segmentation points of said document based on the continuity of said projected vectors.

TECHNICAL FIELD

[0001] The invention relates to a document segmentation method to divide the document into plural blocks by detecting segmentation points where topics of an input document is discontinuous.

BACKGROUND OF THE INVENTION

[0002] The Hearst method is well known as one of document segmentation methods by detecting topic boundaries (the Hearst method can be seen in “Multi-paragraph segmentation of expository text” by M. A. Hearst in Proceedings of the 32nd Annual Meeting of Association for Computational Linguistics, pp. 9-16, 1994). This method first defines certain size windows before and after one of topic boundary candidate points and obtains similarity about what terms appear in each window. If the obtained similarity is high, topic relatedness between the windows is high and the candidate point cannot be a boundary point. If the obtained similarity is low, cohesion between the windows is regarded low and the candidate point can be a boundary point. More specifically, the topic boundary candidate point is moved by regular intervals from the top to the end of the document, similarity value is obtained for each point, and then the point of which the obtained similarity value is minimal can be selected as the topic boundary.

[0003] The Hearst method compares the terms occurring in the windows defined before and after the candidate point in order to detect the topic discontinuity between the windows. This method, however, has the following shortcomings. The first one is related to the window size. Since the window size is selected very arbitrarily, the distance between the topic boundaries, that is, the length of the topics tend to be longer when the selected window size is large, whereas the length of the topics tends to be shorter when the selected window size is small. Therefore, it is difficult to properly divide such documents containing many topics those of which length are different. The second shortcoming is related to the method for detecting topic similarity between the windows before and after the candidate point. A conventional method cannot obtain the similarity unless the same terms occur in both windows because it determines the similarity based on the commonality of terms between the windows. In reality, however, when one of a pair of terms that are relevant to each other in the document appears in first window and the other appears in second window, it is considered that the topic similarity exists between the windows. For example, if there is a sentence that has “Giants” and “Matsui” in an article about baseball, “Giants” and “Matsui” can be regarded as relevant terms. Therefore, if “Giants” appears in the first window and “Matsui” appears in the second window, it can be regarded that the topic similarity exists between these windows even if any other common terms are not contained in the windows. The conventional methods cannot detect such similarity because they focus on only the commonality of terms. Thus the conventional method has a problem related to accuracy of the topic similarity.

SUMMARY OF THE INVENTION

[0004] In order to solve the above-mentioned problem, a segmentation methods according to the invention comprises: detecting terms that occur in an input document; segmenting said input document into document segments, each segment being an appropriate sized chunk; generating document segment vectors with as their elements the values related to frequencies of said terms occurring in said document segments; calculating eigenvalues and eigenvectors of a square sum matrix of said document segment vectors; selecting basis vectors consisting a subspace from said eigenvectors to calculate the topic continuity of the document segments; calculating vectors whose m-th element value is the projection values of the each document segment vector onto said m-th basis vector; and determining segmentation points of said document based on the continuity of said projected vectors.

[0005] A segment vector is a vector whose elements take values determined based on frequencies of each of terms occurring in a document segment and represents a concept of the document segment. The most natural unit for segmenting a document is a sentence. The singular value decomposition process is applied to a set of document segment vectors to expand the set into eigenvalues and eigenvectors that are orthogonal each other. Since each eigenvector is represented by a combination of the terms, it represents a concept by itself. Since eigenvectors are determined inherently to the input document, the concept represented by each eigenvector can be called the eigenconcept. Each eigenvalue can be considered to represent the strength or the energy of the concept represented by the corresponding eigenvector. A projection value of a document segment vector onto an eigenvector is the component that the concept represented by the document segment vector has in the corresponding eigenconcept direction, and the squared projection value represents the energy of such component. The document segments whose concepts are similar with each other should have the similar values for the components in the direction of each eigenconcept. Thus the relatedness of each document segment to each eigenconcept is calculated based on the above-described projection values, then the continuity between each document segment is obtained in terms of the concept relatedness between them, and a point where the continuity is minimal is finally determined as a topic boundary

[0006] As described above, according to the invention, the topic continuity is obtained based on the projection values of each document segment vector onto each eigenvector. Eigenvectors of a squared sum matrix has such characteristic that coefficients for the terms co-occurring in a document have the same sign and almost same values in the lower-dimensional eigenvectors. Accordingly, as long as one of a pair of terms (“Matsui” in the above example) co-occurring in a document appears in one of the concerned document segment and the other (“Giants” in the above example) appears in the other document segment, the projection values of the respective document segment vectors should have the relatedness even though both of the concerned document segments do not share any term. As the number of the pairs of such terms increases, the projection values become further close together. As a result, if eigenvectors are correctly selected or properly weighted, the similarity between the document segments can be correctly obtained and also a topic boundary can be properly determined even though the same topic does not continue long.

BRIEF DESCRIPTION OF THE DRAWINGS

[0007]FIG. 1 is a functional block diagram for one embodiment of the invention; and

[0008]FIG. 2 is a functional block diagram for another embodiment of the invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009]FIG. 1 schematically illustrates functional blocks of one embodiment of the invention. This embodiment may be implemented using a general-purpose computer as its hardware for executing some programs incorporating inventive features.

[0010]FIG. 1 shows a term detection block 11, a morphological analysis block 12, a document segmentation block 13, a document segment vector generation block 14, a square sum matrix calculation block 15, an eigenvalue and eigenvector calculation block 16, a subspace decision block 17, a document segment vector projection block 18, a relatedness calculation block 19 and a topic boundary decision block 20. English documents are used as an example in the following description of this embodiment.

[0011] First, the term detection block 11 detects words and symbol sequences such as numerals from an input document. Words and symbol sequences are generally referred to as “terms” hereinafter. In case of English documents, it is easy to detect terms because in the English orthography terms are always written separately with blanks. The morphological analysis block 12 then performs a morphological analysis such as assigning a part of speech to each of the terms. Then, the document segmentation block 13 segments the document into document segments. The most fundamental segmentation unit for the document segmentation is a sentence. In case of English documents, it is easy to segment a document into sentences because a sentence usually ends with a period followed by at least one space. Other segmentation methods may be used; for example, several sentences may be combined to form a document segment in a manner that all segments should contain the same number of the sentences, or a document may be segmented into segments in a manner that every segment should contain the same number of terms regardless of any boundary between sentences.

[0012] The document segment vector generation block. 14 calculates the number of the dimensions for vectors to be generated from the terms that occur in the entire document and determines correspondences between each dimension and each term. It should be noted that it is not necessary to assign vector elements to all kinds of terms occurring in the document. For example, using a result of the process of assigning parts of speech, it is possible to use only the terms which have been judged as a noun or a verb in the process to generate document segment vector. Then, the document segment vector generation block 14 obtains kinds of the terms occurring in each document segment and occurrence frequencies of each kind of terms, then determines values of corresponding vector elements to generate document segment vectors. Conventional methods are also employed to give a weight to each element value.

[0013] Here, assume that a document is composed of N document segments, in which k kinds of terms occur. Let s_(n)=(s_(n1),s_(n2), . . . , S_(nk))^(T) be the n-th document segment, where s_(nk) represents the frequency value of terms s_(k) in the n-th document segment or its weighted values, and T transpose. Then, the square sum matrix calculation block 15 calculates a square sum matrix A=(A_(ab)) of each document segment vector according to the following equation: $\begin{matrix} {A_{a\quad b} = {\sum\limits_{n = 1}^{N}\quad {s_{n\quad a}s_{n\quad b}}}} & (1) \end{matrix}$

[0014] The eigenvalue and eigenvector calculation block 16 calculates eigenvalues and eigenvectors of the matrix A. Let Φ_(m) and λ_(m) be the m-th eigenvector and eigenvalue of A, respectively. Φ₁ represents the most common direction throughout all sentence segment vectors because the sum of the squared projections of all sentence vectors onto Φ₁ is greater than that onto any other vector. Since λ₁ is the sum of the squared projections itself, it can be considered to represent the strength or energy of the concept that Φ₁ represents. Φ₂ is the axis that gives the largest sum of the squared projections under the constraint that Φ₂ is orthogonal to Φ₁. The same relationship holds for the higher order eigenvectors like Φ₃ and so on. The eigenvectors obtained as described above are used as the basis vectors for a subspace approximating a set of document segment vectors. If L eigenvectors are used, the dimension number of the subspace becomes L, which means that the concept of the input document has been expanded to L eigenconcepts that are orthogonal each other.

[0015] The subspace decision block 17 then decides a value of L specifically. Given matrix A whose rank is R, the document would have R eigenconcepts since R eigenvectors can be obtained from the matrix A. The subspace represents the. central concept by a combination of L eigenconcepts among R eigenconcepts (namely R-L eigenconcepts are supposed to be discarded). The basis vectors of the subspace comprises L eigenvectors. The following expression may represent how much the central concept occupies relative to the original concept. This expression can be used as a criterion for actually determining the value of L. $\begin{matrix} {\sum\limits_{m = 1}^{L}\quad {\lambda_{m}/{\sum\limits_{m = 1}^{R}\quad \lambda_{m}}}} & (2) \end{matrix}$

[0016] The detail of the calculation of eigenvalues and eigenvectors, and determination of a subspace are disclosed in the U.S patent application No. (docket number 40006173) titled “METHOD OF VECTOR ANALYSIS FOR A DOCUMENT”, assigned to the assignee of this document, which is incorporated herein by reference.

[0017] The document segment vector projection block 18 calculates a projection value of each document segment vector onto the subspace. Let p_(n)=(p_(n1),p_(n2), . . . ,p_(nL))^(T) be a vector of s_(n) after the projection. The projection value p_(nm) onto the m-th basis vector can be given by the following equation:

p_(nm)=φ_(m) ^(T)s_(n)   (3)

[0018] The relatedness calculation block 19 calculates relatedness between each document segment and respective eigenconcept, or basis vector. The following is one of methods for calculating such relatedness. An average and a standard deviation of the projection values onto the m-th basis vector for all document segments can be obtained by the following equation:

[0019] {overscore (p_(m))}: Average of the projection values onto the m-th basis vector for all document segments

[0020] {overscore (σ_(m))}: Standard deviation of the projection values onto the m-th basis vector for all document segments $\begin{matrix} \begin{matrix} {\overset{\_}{p_{m}} = {\sum\limits_{n = 1}^{N}{p_{n\quad m}/N}}} \\ {\overset{\_}{\sigma_{m}} = \left\{ \left( {\sum\limits_{n = 1}^{N}{\left( {p_{n\quad m} - \overset{\_}{p_{m}}} \right)^{2}/\left( {N - 1} \right)}} \right) \right\}^{1/2}} \end{matrix} & (4) \end{matrix}$

[0021] Let π_(nm) be a variable indicating a positive relatedness of the n-th document segment with the m-th eigenconcept (basis vector), and let ν_(nm) be a variable indicating a negative relatedness of the n-th document segment with the m-th eigenconcept (basis vector). These variables can be defined as follows:

(p _(nm) −{overscore (p_(m))})/σ _(m) >a then π_(nm)=1

else π_(nm)=0

(p _(nm) −{overscore (p_(m))})/σ _(m) <b then ν_(nm)=1   (5)

else ν_(nm)=0

[0022] In the definition above, a and b are predetermined threshold values. Assume a function h_(m)(n) represents the extent to which the relatedness of the n-th document segment with the m-th eigenconcept is different from the relatedness of the (n-1)th document segment with the m-th basis, that function can be defined as follows:

h _(m)(n)=π_(nm)(1−π_(n−1m))+ν_(nm)(1−ν_(n−1m))+(π_(nm)−1)π_(n−1m)+(ν_(nm)−1)ν_(n−1m)   (6)

[0023] The former two terms in the equation above will take a value of 1 when the positive or negative relatedness starts from the n-th document segment and the latter two terms will take a value of 1 when the positive or negative relatedness ends at the (n−1)th document segment. In other words, the function h_(m)(n) will take 0 when the topic related to the m-th eigenconcept continues and h_(m)(n) will take non zero value when the topics stops or ends.

[0024] The topic boundary decision block 20 calculates h(n) for each n by following equation and obtains the maximal point of h(n): $\begin{matrix} {{h(n)} = {\sum\limits_{m = 1}^{L}{h_{m}(n)}}} & (7) \end{matrix}$

[0025] The maximal point of h(n) is the point where the sum of the variations of the relatedness with L eigenconcepts (basis vector) becomes a maximum locally, so the head of the corresponding document segment is decided to be a topic boundary. Thus the document is segmented at topic boundaries. In the above-mentioned embodiment, although projection values of the document segment vectors onto the basis vector have been used in order to calculate the relatedness between the document segments and the eigenconcept, squared projection values can be alternatively used to obtain the same result. In this case, p_(nm) is given by the following equation instead of the equation 3:

p _(nm)=(φ_(m) ^(T) s _(n))²   (8)

[0026]FIG. 2 schematically illustrates functional blocks of another embodiment of the invention. This embodiment may be implemented by using a general-purpose computer as its hardware for executing some programs incorporating inventive features.

[0027]FIG. 2 shows a term detection block 11, a morphological analysis block 12, a document segmentation block 13, a document segment vector generation block 14, a square sum matrix calculation block 15, an eigenvalue and eigenvector calculation block 16, a subspace decision block 17, a document segment vector projection block 18, a topic continuity calculation block 29 and a minimum continuity point detection block 30. From block 11 to block 18 are same blocks as described in FIG. 1.

[0028] When the point immediately after the n-th document segment is decided as the boundary point candidate, the topic continuity calculation block 29 calculates projection vectors for all segment vectors between c document segments before the boundary point candidate and c document segments after the boundary point candidate onto the subspace to obtain the topic continuity between the document segments. Around the head or bottom of the concerned document, the number of the document segments before or after the boundary point candidate may not reach C. In this case, since all the documents existing before or after the point should be used, C represents the number of the documents existing there. Here, let p_(n)=(p_(n1),p_(n2), . . . ,p_(nL)) be a projection vector of the n-th document segment s_(n) to the subspace, then the projection value p_(nm) onto the m-th basis vector can be given by the above-presented equation 8. Then, the continuity h(n) is calculated using the following equations: $\begin{matrix} {\left. {{h(n)} = {\sum\limits_{i = 1}^{C}\quad {\sum\limits_{j = 1}^{C}\left\{ {p_{n + i}^{T}{p_{n - j + i}/\left( {\left( {p_{n + i}} \right.p_{n - j + I}} \right.}} \right)}}} \right\}/C^{2}} & (9) \\ \left. {{{h(n)} = {{\left\{ {\sum\limits_{i = 1}^{C}\quad {\sum\limits_{j = 1}^{C}{p_{n + i}^{T}p_{n - j + i}}}} \right\}/\left\{ {\sum\limits_{i = 1}^{C}{{p_{n + i}}\sum\limits_{j = 1}^{C}}} \right.}p_{n - j + i}}}} \right\} & (10) \end{matrix}$

[0029] ∥ ∥ where represents norms, and p_(n+i) ^(T) p_(n−j+i) represents an inner product defined in the following equation: $\begin{matrix} {{p_{n + i}^{T}p_{n - j + i}} = {\sum\limits_{m = 1}^{L}{p_{{n + i},m}p_{{n - j + I},m}}}} & (11) \end{matrix}$

[0030] where P_(n+i,m) represents the m-th component of vector p_(n+i).

[0031] Equation 9 is an average of the cosign similarity values for all combinations between the project vectors of C document segments immediately before and after the n-th document segment. In the equation 9, the similarity based on the project vectors between the shorter document segments may have too great influence on the h(n). Equation 10 is intended to decrease such influence. In both equations, the h(n) will take larger value if the topic continues before and after of the boundary point and it will take smaller value if the topic does discontinue there.

[0032] The minimum continuity point detection block 30 obtains the minimal point of h(n). The minimal point of h(n) represents the minimal point of the continuity, that is, the maximal point of the discontinuity. Accordingly, the end of the corresponding document segment can be decided to be a topic boundary. Thus the document may be segmented at the topic boundary. Although projection values of the document segment vectors onto the basis vectors have been used in order to calculate relatedness between the document segments and the eigenconcept in the above-described embodiment, squared projection values can be alternatively used to obtain the same result. In this case, p_(nm) is given by the equation (8) instead of the equation (3).

[0033] Taking an actual English document as an experimental example, composed by 58 document segments (sentences), with 44 noun terms occurring at least twice in the document, it has been observed that the document segmentation result according to the invention in either FIG. 1 or FIG. 2 matches best with human perception and in particular the portions in which topic changes are confirmed by human are extracted as topic boundaries by the inventive method.

[0034] Thus, according to the invention, the precision in detecting topic boundaries is improved because the change of the concept of each sentence is obtained to detect the topic boundary. 

What is claimed is:
 1. A method for segmenting a given input document, comprising: detecting terms that occur in said input document; segmenting said input document into document segments, each segment being an appropriately sized chunk; generating document segment vectors with as their elements the values related to the frequencies of said terms occurring in said document segments; calculating eigenvalues and eigenvectors of a square sum matrix of said document segment vectors; selecting a basis vector consisting a subspace from said eigenvectors to calculate the topic continuity of the document segments; calculating vectors with as the elements the values corresponding to the projection values of the each document segment vector onto said basis vectors; and determining segmentation points of said document based on the continuity of said projected vectors.
 2. The method as claimed in claim 1, wherein when said input document in which K terms occur is divided into N document segments, said square sum matrix is calculated by the following equation; $A_{ab} = {\sum\limits_{n = 1}^{N}\quad {s_{n\quad a}s_{n\quad b}}}$

where s_(ni) represents values corresponding to the occurrence frequency of the i-th term in the n-th document segment and the n-th document segment vector s_(n) (n=1, . . . ,N) is represented by (s_(n1),s_(n2), . . . ,s_(nk))^(T)
 3. The method as claimed in claim 1, wherein when π_(nm) represents a variable indicating positive relatedness of the n-th document segment with the m-th basis vector and ν_(nm) represents a variable indicating negative relatedness of the n-th document segment with the m-th basis vector, π_(nm) and ν_(nm) are defined using the following equation; (p _(nm) −{overscore (p_(m))})/σ _(m) >a then π_(nm)=1 else π_(nm)=0 (p _(nm) −{overscore (p_(m))})/σ _(m) <b then ν_(nm)=1 else ν_(nm)=0 where p_(nm) represents a projection value or a squared projection value of the n-th document segment onto the m-th basis vector, {overscore (p_(m))} represents the average of p_(nm) over all of the document segments and {overscore (σ_(m))} represents the standard deviation of p_(nm) over all of the document segments.
 4. The method as claimed in claim 3, wherein the function h_(m)(n), which indicates the extent of which the relatedness of the n-th document segment with the m-th basis vector is different from the relatedness of the (n−1)th document segment with the m-th basis vector, is defined using the following equation; h _(m)(n)=π_(nm)(1−π_(n−1m))+ν_(nm)(1−ν_(n−1m))+(π_(nm)−1)π_(n−1m)+(ν_(nm)−1)ν_(n−1m) the h(n) is calculated for each n by the following equation; ${h(n)} = {\sum\limits_{m = 1}^{L}{h_{m}(n)}}$

and then the document segmentation point is determined based on the maximal point of the calculated h(n).
 5. The method as claimed in claim 1, wherein the topic continuity before and after a segmentation point candidate is calculated from all combinations of the projection vectors of a certain number of the document segment vectors immediately before said segmentation point candidate onto said subspace with the projection vectors of a certain number of the document segment vectors immediately after said segmentation point candidate onto said subspace.
 6. The method as claimed in claim 5, wherein when the point immediately after the document segment n is said segmentation point candidate and the inner product between the vectors p_(n+i) and p_(n+j−1) is defined as the following equation; ${p_{n + i}^{T}p_{n - j + i}} = {\sum\limits_{m - 1}^{L}{p_{{n + i},m}p_{{n - j + I},m}}}$

where L represents the order number of the subspace and p_(n)=(p_(n1),p_(n2), . . . p_(nL))^(T) the projection vector of the document segment vector n onto the subspace, and the function h(n) representing the topic continuity is calculated by; $\begin{matrix} {{\left. {{h(n)} = {\sum\limits_{i = 1}^{C}\quad {\sum\limits_{j = 1}^{C}\left\{ {p_{n + i}^{T}{p_{n - j + i}/\left( {\left( {p_{n + i}} \right.p_{n - j + I}} \right.}} \right)}}} \right\}/C^{2}}{or}} \\ \left. {{{h(n)} = {{\left\{ {\sum\limits_{i = 1}^{C}\quad {\sum\limits_{j = 1}^{C}{p_{n + i}^{T}p_{n - j + i}}}} \right\}/\left\{ {\sum\limits_{i = 1}^{C}{{p_{n + i}}\sum\limits_{j = 1}^{C}}} \right.}p_{n - j + i}}}} \right\} \end{matrix}$

where C represents number of the document segments to be processed before and after said segmentation point candidate and ∥ ∥ denotes norm.
 7. The method as claimed in claim 5, wherein said document segmentation point is determined based on the maximal point of said h(n). 